package org.mch.comm.utils;

import java.util.List;

public class MListUtil {

	public MListUtil() {
		super();
	}

	/**
	 * 按行返回String；
	 * 
	 * @param list
	 * @return
	 */
	public String getByLine(List<String> list) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0, size = list.size(); i < size; i++) {
			sb.append(list.get(i));
			if (i < size - 1) {
				sb.append("\n");
			}
		}
		return sb.toString();
	}
}
